
package com.p2p.base.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * 后台操作员
 * 
 * @author ricky
 */
public class BackendUser implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = -5850639436484194279L;

	/**
	 * PK
	 */
	private Long id;

	/**
	 * 登录名
	 */
	private String loginName;

	/**
	 * 用户姓名
	 */
	private String userName;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 是否系统用户，系统用户只能初始化，不能通过界面功能维护和删除
	 */
	private Boolean isSystem = false;

	/**
	 * 用户帐号是否可用
	 */
	private Boolean isEnabled = true;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 最后修改时间
	 */
	private Date latestUpdateTime;

	/**
	 * 最后登录时间
	 */
	private Date latestAccessTime;

	/**
	 * VERSION
	 */
	private Date version;

	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 电话
	 */
	private String phone;

	/**
	 * 工号
	 */
	private String jobNumber;

	/**
	 * 备注
	 */
	private String memo;
	
	private Map<String,Object> permitMap = null;
	
	private List<String> permitList = null;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Boolean getIsSystem() {
		return isSystem;
	}

	public void setIsSystem(Boolean isSystem) {
		this.isSystem = isSystem;
	}

	public Boolean getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

/*	public void setIntIsEnabled(String isEnabled) {
		if (isEnabled == null || "".equals(isEnabled) || "null".equals(isEnabled)) {
			this.isEnabled = null;
		} else if ("true".equals(isEnabled)) {
			this.isEnabled = true;
		} else if ("false".equals(isEnabled)) {
			this.isEnabled = false;
		}
	}*/

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLatestUpdateTime() {
		return latestUpdateTime;
	}

	public void setLatestUpdateTime(Date latestUpdateTime) {
		this.latestUpdateTime = latestUpdateTime;
	}

	public Date getLatestAccessTime() {
		return latestAccessTime;
	}

	public void setLatestAccessTime(Date latestAccessTime) {
		this.latestAccessTime = latestAccessTime;
	}

	public Date getVersion() {
		return version;
	}

	public void setVersion(Date version) {
		this.version = version;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getJobNumber() {
		return jobNumber;
	}

	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Map<String, Object> getPermitMap() {
		return permitMap;
	}

	public void setPermitMap(Map<String, Object> permitMap) {
		this.permitMap = permitMap;
	}

	public List<String> getPermitList() {
		return permitList;
	}

	public void setPermitList(List<String> permitList) {
		this.permitList = permitList;
	}
	
	
}
